import request from '@/utils/request'

// 查询车位租赁列表
export function listTcParkingLease(query) {
  return request({
    url: '/energy/tcParkingLease/list',
    method: 'get',
    params: query
  })
}

// 查询车位租赁详细
export function getTcParkingLease(id) {
  return request({
    url: '/energy/tcParkingLease/' + id,
    method: 'get'
  })
}

// 新增车位租赁
export function addTcParkingLease(data) {
  return request({
    url: '/energy/tcParkingLease',
    method: 'post',
    data: data
  })
}

// 修改车位租赁
export function updateTcParkingLease(data) {
  return request({
    url: '/energy/tcParkingLease',
    method: 'put',
    data: data
  })
}

// 删除车位租赁
export function delTcParkingLease(id) {
  return request({
    url: '/energy/tcParkingLease/' + id,
    method: 'delete'
  })
}
